package com.tairanchina.joat;

import com.tairanchina.joat.exception.JoatExecuteException;

/**
 * Created by 周靖捷 on 2016/10/16.
 */
public abstract class ConditionPlugin implements Plugin {
    public Object execute(PluginVariable variable, PluginEnvironment environment) throws JoatExecuteException {
        return onCondition(variable, environment);
    }

    public abstract Object onCondition(PluginVariable variable, PluginEnvironment environment) throws JoatExecuteException;

    public abstract boolean isMatchedCondition(Object condition);


}
